import request from '@/utils/request';
// POST /dataRegister/getAllDataRegisterByPage
export function getAllRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/dataRegister/getAllDataRegisterByPage?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
// POST /registerDataMid/DataControllerAPI
export function getAllTwoRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/registerDataMid/DataControllerAPI?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
// POST /registerDataEnd/ConfirmDataControllerAPI
export function getAllThreeRegister(current, limit, query) {
  const query2 = {};
  Object.assign(query2, query);
  return request({
    url: `/api-clue/registerDataEnd/ConfirmDataControllerAPI?current=${current}&limit=${limit}`,
    method: 'post',
    data: query2
  });
}
// POST /dataRegister/addDataRegister
export function addRegister(params) {
  return request({
    url: '/api-clue/dataRegister/addDataRegister',
    method: 'post',
    data: params
  });
}

export function getOthers() {
  return request({
    url: '/api-clue/other/getOthers',
    method: 'get'
  });
}
// POST /dataRegister/commitDataRegister
export function commitRegister(params) {
  return request({
    url: '/api-clue/dataRegister/commitDataRegister',
    method: 'post',
    data: params
  });
}
// POST /registerDataMid/commitData
export function commitCol(params) {
  return request({
    url: '/api-clue/registerDataMid/commitData',
    method: 'post',
    data: params
  });
}
// POST /registerDataEnd/ConfirmcommitData
export function ConfirmcommitCol(params) {
  return request({
    url: '/api-clue/registerDataEnd/ConfirmcommitData',
    method: 'post',
    data: params
  });
}
// DELETE /dataRegister/deleteDataRegisterById/{id}
export function Delete(id) {
  return request({
    url: `/api-clue/dataRegister/deleteDataRegisterById/${id}`,
    method: 'delete'
  });
}
// POST /dataRegister/dataInfo/{clueId}
export function clueInfo(id) {
  return request({
    url: `/api-clue/dataRegister/dataInfo/${id}`,
    method: 'get'
  });
}

